/*
 * Flag.cpp
 *
 *  Created on: 10/06/2012
 *      Author: lucho0
 */

#include "Flag.h"

Flag::Flag(int posX, int posY,std::string imageSurface, Widget* parent,std::string type) :
	Widget( posX, posY,imageSurface,parent){

	this->type=type;

}



std::string Flag::getType(){
	return this->type;
}


void Flag::showOn(SDL_Surface* surface){

	SDL_Rect offset;
	offset.x = this->parcel->posX;
	offset.y = this->parcel->posY;
	SDL_BlitSurface(this->surface, NULL, surface, &offset);

}

void Flag::setX(int x){
	this->parcel->posX=x;
}

Flag::~Flag() {
	// TODO Auto-generated destructor stub
}
